package com.synnex.mobile.servier.web.common.interceptor;

import com.synnex.mobile.generic.log.web.interceptors.AbstractLogInterceptor;
import com.synnex.mobile.generic.web.session.WebSession;
import com.synnex.mobile.generic.web.view.ModelAndView;
import com.synnex.mobile.servier.web.common.session.mobile.MobileWebSession;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;

/**
 *
 * @author Lance Chen
 */
public class LogInterceptor extends AbstractLogInterceptor {

    @Override
    protected WebSession getSession(HttpServletRequest request) {
        WebSession webSession = WebSession.getCurrentSession(MobileWebSession.class, request);
        return webSession;
    }

    public void postHandle(HttpServletRequest request, HttpServletResponse response, Object o, Method method, ModelAndView modelAndView) throws Exception {
    }
}
